/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.atomojo.app.storage.xmldb;

import org.atomojo.app.Main;

/**
 *
 * @author alex
 */
public class MainSurrogate {

   Main main;
   public static void main(String [] args) {
      boolean found = false;
      for (int i=0; i<args.length; i++) {
         if (args[i].equals("-c") || args[i].equals("--class")) {
            found = true;
         }
      }
      if (!found) {
         String [] newargs = new String[args.length+2];
         newargs[0] = "-c";
         newargs[1] = XMLDBStorageFactory.class.getName();
         System.arraycopy(args, 0, newargs, 2, args.length);
         args = newargs;
      }
      Main.main(args);
   }
}
